package com.labot.util;

import java.io.PrintWriter;
import java.io.StringWriter;

public class StackTraceUtils {
	
	public static String getStackTrace(Exception e) {
		if (e == null) {
			return null;
		}
		StringWriter sw = new StringWriter();
		e.printStackTrace(new PrintWriter(sw));
		String stacktrace = sw.toString();
		return stacktrace;
	}

}
